package suanfa.exam1;

import java.util.Scanner;

public class t1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请随意输入一个小数:");
        float x = sc.nextFloat();
        System.out.println("与之最接近的整数为："+Math.round(x));
    }
}
